package com.leadership.training.entity.report;

import javax.persistence.Column;

import com.leadership.training.entity.project.Project;
import com.leadership.training.entity.project.ProjectTrainee;
import com.leadership.training.entity.trainee.Trainee;


/**
 * 项目-学员-报表
 * @author Rockett
 *
 */
public class ProjectTraineeReport {
    
	/**
	 * ID
	 */
    private Long id;
    
    /**
     * 项目
     */
    private Project project;
    
    /**
     * 学员
     */
    private Trainee trainee;

    /**缺勤天数*/
    private Float absence;
    /**成绩*/
    private Float score;
    
    /**
     * 是否结业
     */
    private boolean complete;
    /**
     * 是否补考
     */
    private boolean resit;
    /**
     * 备注
     */
    private String comment;
    /**
	 * @return the resit
	 */
    /**
     * 状态(待定)
     */
	String status;

	public boolean isResit() {
		return resit;
	}


	/**
	 * @param resit the resit to set
	 */
	public void setResit(boolean resit) {
		this.resit = resit;
	}


	@Column(name = "is_disabled")
    private boolean disabled;
    


	public boolean isDisabled() {
		return disabled;
	}


	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}


	/**
	 * @return the absence
	 */
	public Float getAbsence() {
		return absence;
	}


	/**
	 * @param absence the absence to set
	 */
	public void setAbsence(Float absence) {
		this.absence = absence;
	}


	/**
	 * @return the score
	 */
	public Float getScore() {
		return score;
	}


	/**
	 * @param score the score to set
	 */
	public void setScore(Float score) {
		this.score = score;
	}


	/**
	 * @return the complete
	 */
	public boolean isComplete() {
		return complete;
	}


	/**
	 * @param complete the complete to set
	 */
	public void setComplete(boolean complete) {
		this.complete = complete;
	}


    
    /**
     * The default constructor
     */
    public ProjectTraineeReport() {
    	this.disabled=false;
    }
    public ProjectTraineeReport(ProjectTrainee projectTrainee) {
    	this.absence=projectTrainee.getAbsence();
    	this.comment=projectTrainee.getComment();
    	this.complete=projectTrainee.getComplete();
    	this.disabled=projectTrainee.isDisabled();
    	this.id=projectTrainee.getId();
    	this.project=projectTrainee.getProject();
    	this.resit=projectTrainee.getResit();
    	this.score=projectTrainee.getScore();
    	this.status=projectTrainee.getStatus();
    	this.trainee=projectTrainee.getTrainee();
    }
    

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }


    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }




	/**
	 * @return the project
	 */
	public Project getProject() {
		return project;
	}


	/**
	 * @param project the project to set
	 */
	public void setProject(Project project) {
		this.project = project;
	}




	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}


	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}


	/**
	 * @return the trainee
	 */
	public Trainee getTrainee() {
		return trainee;
	}


	/**
	 * @param trainee the trainee to set
	 */
	public void setTrainee(Trainee trainee) {
		this.trainee = trainee;
	}


	/**
	 * @return the comment
	 */
	public String getComment() {
		return comment;
	}


	/**
	 * @param comment the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}




}